package cn.com.xyc.pojo;

import java.util.ArrayList;
import java.util.List;

public class WordBookExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WordBookExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDicIdIsNull() {
            addCriterion("DIC_ID is null");
            return (Criteria) this;
        }

        public Criteria andDicIdIsNotNull() {
            addCriterion("DIC_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDicIdEqualTo(Integer value) {
            addCriterion("DIC_ID =", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdNotEqualTo(Integer value) {
            addCriterion("DIC_ID <>", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdGreaterThan(Integer value) {
            addCriterion("DIC_ID >", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DIC_ID >=", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdLessThan(Integer value) {
            addCriterion("DIC_ID <", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdLessThanOrEqualTo(Integer value) {
            addCriterion("DIC_ID <=", value, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdIn(List<Integer> values) {
            addCriterion("DIC_ID in", values, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdNotIn(List<Integer> values) {
            addCriterion("DIC_ID not in", values, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdBetween(Integer value1, Integer value2) {
            addCriterion("DIC_ID between", value1, value2, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DIC_ID not between", value1, value2, "dicId");
            return (Criteria) this;
        }

        public Criteria andDicTypeIsNull() {
            addCriterion("DIC_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andDicTypeIsNotNull() {
            addCriterion("DIC_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andDicTypeEqualTo(String value) {
            addCriterion("DIC_TYPE =", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeNotEqualTo(String value) {
            addCriterion("DIC_TYPE <>", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeGreaterThan(String value) {
            addCriterion("DIC_TYPE >", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_TYPE >=", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeLessThan(String value) {
            addCriterion("DIC_TYPE <", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeLessThanOrEqualTo(String value) {
            addCriterion("DIC_TYPE <=", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeLike(String value) {
            addCriterion("DIC_TYPE like", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeNotLike(String value) {
            addCriterion("DIC_TYPE not like", value, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeIn(List<String> values) {
            addCriterion("DIC_TYPE in", values, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeNotIn(List<String> values) {
            addCriterion("DIC_TYPE not in", values, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeBetween(String value1, String value2) {
            addCriterion("DIC_TYPE between", value1, value2, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicTypeNotBetween(String value1, String value2) {
            addCriterion("DIC_TYPE not between", value1, value2, "dicType");
            return (Criteria) this;
        }

        public Criteria andDicCnIsNull() {
            addCriterion("DIC_CN is null");
            return (Criteria) this;
        }

        public Criteria andDicCnIsNotNull() {
            addCriterion("DIC_CN is not null");
            return (Criteria) this;
        }

        public Criteria andDicCnEqualTo(String value) {
            addCriterion("DIC_CN =", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnNotEqualTo(String value) {
            addCriterion("DIC_CN <>", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnGreaterThan(String value) {
            addCriterion("DIC_CN >", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_CN >=", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnLessThan(String value) {
            addCriterion("DIC_CN <", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnLessThanOrEqualTo(String value) {
            addCriterion("DIC_CN <=", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnLike(String value) {
            addCriterion("DIC_CN like", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnNotLike(String value) {
            addCriterion("DIC_CN not like", value, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnIn(List<String> values) {
            addCriterion("DIC_CN in", values, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnNotIn(List<String> values) {
            addCriterion("DIC_CN not in", values, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnBetween(String value1, String value2) {
            addCriterion("DIC_CN between", value1, value2, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicCnNotBetween(String value1, String value2) {
            addCriterion("DIC_CN not between", value1, value2, "dicCn");
            return (Criteria) this;
        }

        public Criteria andDicEnIsNull() {
            addCriterion("DIC_EN is null");
            return (Criteria) this;
        }

        public Criteria andDicEnIsNotNull() {
            addCriterion("DIC_EN is not null");
            return (Criteria) this;
        }

        public Criteria andDicEnEqualTo(String value) {
            addCriterion("DIC_EN =", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnNotEqualTo(String value) {
            addCriterion("DIC_EN <>", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnGreaterThan(String value) {
            addCriterion("DIC_EN >", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_EN >=", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnLessThan(String value) {
            addCriterion("DIC_EN <", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnLessThanOrEqualTo(String value) {
            addCriterion("DIC_EN <=", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnLike(String value) {
            addCriterion("DIC_EN like", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnNotLike(String value) {
            addCriterion("DIC_EN not like", value, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnIn(List<String> values) {
            addCriterion("DIC_EN in", values, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnNotIn(List<String> values) {
            addCriterion("DIC_EN not in", values, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnBetween(String value1, String value2) {
            addCriterion("DIC_EN between", value1, value2, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicEnNotBetween(String value1, String value2) {
            addCriterion("DIC_EN not between", value1, value2, "dicEn");
            return (Criteria) this;
        }

        public Criteria andDicNoteIsNull() {
            addCriterion("DIC_NOTE is null");
            return (Criteria) this;
        }

        public Criteria andDicNoteIsNotNull() {
            addCriterion("DIC_NOTE is not null");
            return (Criteria) this;
        }

        public Criteria andDicNoteEqualTo(String value) {
            addCriterion("DIC_NOTE =", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteNotEqualTo(String value) {
            addCriterion("DIC_NOTE <>", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteGreaterThan(String value) {
            addCriterion("DIC_NOTE >", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_NOTE >=", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteLessThan(String value) {
            addCriterion("DIC_NOTE <", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteLessThanOrEqualTo(String value) {
            addCriterion("DIC_NOTE <=", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteLike(String value) {
            addCriterion("DIC_NOTE like", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteNotLike(String value) {
            addCriterion("DIC_NOTE not like", value, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteIn(List<String> values) {
            addCriterion("DIC_NOTE in", values, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteNotIn(List<String> values) {
            addCriterion("DIC_NOTE not in", values, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteBetween(String value1, String value2) {
            addCriterion("DIC_NOTE between", value1, value2, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicNoteNotBetween(String value1, String value2) {
            addCriterion("DIC_NOTE not between", value1, value2, "dicNote");
            return (Criteria) this;
        }

        public Criteria andDicStatusIsNull() {
            addCriterion("DIC_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andDicStatusIsNotNull() {
            addCriterion("DIC_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andDicStatusEqualTo(Integer value) {
            addCriterion("DIC_STATUS =", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusNotEqualTo(Integer value) {
            addCriterion("DIC_STATUS <>", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusGreaterThan(Integer value) {
            addCriterion("DIC_STATUS >", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("DIC_STATUS >=", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusLessThan(Integer value) {
            addCriterion("DIC_STATUS <", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusLessThanOrEqualTo(Integer value) {
            addCriterion("DIC_STATUS <=", value, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusIn(List<Integer> values) {
            addCriterion("DIC_STATUS in", values, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusNotIn(List<Integer> values) {
            addCriterion("DIC_STATUS not in", values, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusBetween(Integer value1, Integer value2) {
            addCriterion("DIC_STATUS between", value1, value2, "dicStatus");
            return (Criteria) this;
        }

        public Criteria andDicStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("DIC_STATUS not between", value1, value2, "dicStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}